****************************************
* Table B4: Democrat Vote Share: Main Specification (Continuous Treatment)
******************************************

preserve
use "$input/prec-hur", clear
xtset group
qui xtreg demosenshare_total logd didlog post i.year i.stateid, fe cl(group)
outreg2 using "$output/tabb4.doc",  replace dec(3)   

use "$input/prec-major-hur", clear
xtset group
qui xtreg demosenshare_total logd didlog post i.year i.stateid, fe cl(group)
outreg2 using "$output/tabb4.doc",  append dec(3)   

use "$input/prec-hur", clear
xtset group
qui xtreg demohouseshare_total logd didlog post i.year i.stateid, fe cl(group)
outreg2 using "$output/tabb4.doc",  append dec(3)   

use "$input/prec-major-hur", clear
xtset group
qui xtreg demohouseshare_total logd didlog post i.year i.stateid, fe cl(group)
outreg2 using "$output/tabb4.doc",   dec(3)  append tex
restore
